<include file="Index:header" />
<!--头部 end -->
<!--左栏 starts -->
<div class="container-fluid">
		<div class="row-fluid">
			<include file="left" />

			<div id="content" class="span10">
			<!-- content starts -->
<!--左栏 end -->
<ul class="breadcrumb">
      <li>
        <a href="__APP__/ADMINADSS.html">首页</a> <span class="divider">/</span>
      </li>
      <li class="active">机构担保</li>
</ul>
<table class="table table-striped table-bordered table-condensed datatable ">
            <thead>
              <tr>
                <th>id</th>
                <th>用户名</th>
                <th>意向融资金额</th>
                <th>所在地域</th>
                <th>融资期限</th>
                <th>分配状态</th>
                <th>担保公司</th>
                <th>状态</th>
                <th>推荐</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
<volist name="list" id="vo">
                <tr>
                <td>{$vo.id}</td>
                <td>{$vo.username}</td>
                <td>{$vo.money}万</td>
                <td>{$vo.locations}</td>
                <td>{$vo.deadline}个月</td>
                <td>
                    <switch name="vo.type">
                      <case value="1">已分配</case>
                      <case value="2">已撤销</case>
                      <case value="3">已通过</case>
                      <default/>
                      待分配
                    </switch>
                </td>
                <td>{$vo['gcompany']?$vo['gcompanys']:'待分配'}</td>
                <td>
                	<if condition="$vo.state eq 0">
                    未发布
                    <else/>
                    <switch name="vo.state">
                      <case value="1">审核通过</case>
                      <case value="2">审核失败</case>
                      <case value="3">用户取消</case>
                      <case value="4">流标</case>
                      <case value="7">还款</case>
                      <case value="8">逾期</case>
                      <case value="9">完成</case>
                      <default/>
                      待分配
                    </switch>
                    </if>
                </td>
                <td class="form-inline">
                    <if condition="$vo.stick eq 0">
                    <label class="radio"><input type="radio" name="stick{$vo.id}" value="0" class="noty" checked data-noty-options='{"text":"修改成功","layout":"center","type":"success"}' onclick='var stick=$(this).val();$.post("__APP__/ADMINADSS/Loan/entry_stick", { id: {$vo.guarantee.bid},stick:stick} );'/> 否</label>
                    <label class="radio"><input type="radio" name="stick{$vo.id}" value="1" class="noty" data-noty-options='{"text":"修改成功","layout":"center","type":"success"}' onclick='var stick=$(this).val();$.post("__APP__/ADMINADSS/Loan/entry_stick", { id: {$vo.guarantee.bid},stick:stick} );'/> 是</label>
                   <else />
                    <label class="radio"><input type="radio" name="stick{$vo.id}" value="0" class="noty"data-noty-options='{"text":"修改成功","layout":"center","type":"success"}' onclick='var stick=$(this).val();$.post("__APP__/ADMINADSS/Loan/entry_stick", { id: {$vo.guarantee.bid},stick:stick} );'/> 否</label>
                    <label class="radio"><input type="radio" name="stick{$vo.id}" value="1" checked class="noty" data-noty-options='{"text":"修改成功","layout":"center","type":"success"}' onclick='var stick=$(this).val();$.post("__APP__/ADMINADSS/Loan/entry_stick, { id: {$vo.guarantee.bid},stick:stick} );'/> 是</label>
                   </if>
                </td>
                <td>
                <if condition="$vo['guarantee']['bid'] gt 0">
                    <a href="__APP__/ADMINADSS/Loan/release/id/{$vo.id}.html" data-rel="tooltip" class="icon-search" title="查看"></a>
                <else/>
                   
                   <if condition="$vo.type lt 1">
                        <a href="__APP__/ADMINADSS/Loan/institutions_page/id/{$vo.id}/uid/{$vo.uid}/pid/1.html" data-rel="tooltip" class="icon icon-color icon-rssfeed" title="分配"></a>
                    <elseif condition="$vo.type eq 1"/>
                        <a href="__APP__/ADMINADSS/Loan/institutions_page/id/{$vo.id}/pid/2.html" data-rel="tooltip" class="icon icon-color icon-edit" title="修改"></a>
                    <elseif condition="$vo.type eq 3"/>
                        <a href="__APP__/ADMINADSS/Loan/release/id/{$vo.id}/pid/1.html" data-rel="tooltip" class="icon icon-color icon-sent" title="发布"></a>
                    <else/>
                    无
                    </if>
                </if>
                </td>
              </tr>
			  <input name="id[]" type="hidden" value="{$vo.id}" />
</volist>
            </tbody>
          </table>
<div>
</div>
<!--底部 -->
<include file="Index:footer" />
